function [output] = singen(A, w, A0, t)
output = A*sin(rand(1)+2*pi*w*t)+A0;